﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="ERP.UI.SystemAdministrator.LoginSettings"
	x:Name="Window"
	Title="LoginSettings"
	Width="386" Height="297"
	Background="{DynamicResource WindowBackground}" 
	SizeToContent="WidthAndHeight" ShowInTaskbar="False" Topmost="False"
	ResizeMode="NoResize" WindowStartupLocation="CenterOwner" WindowStyle="None" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" 
	>
	<Grid x:Name="LayoutRoot">
		<Button Content="Save" x:Name="btnSave" Click="btnSave_Click" TabIndex="9" Margin="0,0,11,13.153" Width="92" HorizontalAlignment="Right" Height="24.847" VerticalAlignment="Bottom"/>
		<Button x:Name="btnCancel"  Click="btnCancel_Click" TabIndex="10" Width="35" HorizontalAlignment="Right" Margin="0,7,9,0" Height="32" VerticalAlignment="Top"  Style="{DynamicResource CloseButton}" />
		<Label Visibility="Hidden" Content="Saved successfully" x:Name="lblSavedSuccessfully" Margin="121,0,147,7" VerticalAlignment="Bottom" Height="29"/>
		<Label Visibility="Hidden" Style="{DynamicResource ErrorMessage}" Content="Cannot save!" x:Name="lblCannotSave" Margin="139,0,165,10" VerticalAlignment="Bottom" Height="26"/>
		<Label Visibility="Hidden" Style="{DynamicResource ErrorMessage}" Content="Please fill all fields" x:Name="lblInvalidFields" Margin="139,0,165,10" VerticalAlignment="Bottom" Height="26"/>
		<Label Content="Login Settings" Margin="0,7,160,0" VerticalAlignment="Top" Height="30" FontSize="16" FontStyle="Normal" FontWeight="Normal" Width="181" HorizontalAlignment="Right" />
		<StackPanel Margin="10,47,0,49" d:LayoutOverrides="VerticalAlignment" HorizontalAlignment="Left" Width="118">
			<StackPanel.Resources>
				<Style TargetType="{x:Type Label}">
					<Setter Property="Margin" Value="0,8.5,0,0"/>
					<Setter Property="Foreground" Value="#FF959494" />
				</Style>
			</StackPanel.Resources>
			<Label Width="Auto" Height="22" Content="Username"/>
			<Label Width="Auto" Height="22" Content="New username"/>
			<Label Width="Auto" Height="22" Content="Confirm username"/>
			<Label Width="118" Height="22" Content="Old password"/>
			<Label Width="118" Height="22" Content="New password"/>
			<Label Width="118" Height="22" Content="Confirm password"/>
		</StackPanel>
		<StackPanel Margin="133,47,13,49" d:LayoutOverrides="VerticalAlignment">
			<StackPanel.Resources>
				<Style TargetType="{x:Type TextBox}">
					<Setter Property="Margin" Value="0,10,0,0"/>
				</Style>
				<Style TargetType="{x:Type PasswordBox}">
					<Setter Property="Margin" Value="0,10,0,0"/>
				</Style>
			</StackPanel.Resources>
			<TextBox Text="" TextWrapping="Wrap" Height="20" Width="240" Name="txtOldUsername"/>
			<TextBox Text="" TextWrapping="Wrap" Width="240" Height="20" Name="txtNewUsername"/>
			<TextBox Text="" TextWrapping="Wrap" Width="240" Height="20" Name="txtConfirmNewUsername"/>
			<PasswordBox Width="240" Height="20" Name="txtOldPassword"/>
			<PasswordBox Width="240" Height="20" Name="txtNewPassword"/>
			<PasswordBox Width="240" Height="20" Name="txtConfirmNewPassword"/>
		</StackPanel>
		<Image VerticalAlignment="Top" Width="32" Height="32" Source="..\..\Images\en-us\LoginSettings.png" d:LayoutOverrides="Width" HorizontalAlignment="Left" Margin="10,6,0,0"/>        		
        <Border BorderBrush="{DynamicResource BorderBrush}"/>
	</Grid>
</Window>